package com.zmkj.taobao.taobaoorderservice.apiresponse;

import java.util.List;

public class BaseResponse<T> {
    private  String  status;//返回状态
    private  String   msg;//返回接口提示信息
    private  List<T>  result;//返回列表数据
    private     T     data;//返回普通对象数据

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<T> getResult() {
        return result;
    }

    public void setResult(List<T> result) {
        this.result = result;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "BaseResponse{" +
                "status='" + status + '\'' +
                ", msg='" + msg + '\'' +
                ", result=" + result +
                ", data=" + data +
                '}';
    }
}
